<!DOCTYPE html>
<html>
<head>
	{include file="common_header" /}
	{include file="common_top" /}
</head>
<body>
<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
      <div class="layui-col-md12">
        <div class="layui-card">
          <div class="layui-card-body">
		   <div class="layui-box layui-laypage layui-laypage-molv">{$page}</div>
            <table class="layui-table" lay-even="" lay-skin="nob">

            <thead>
              <tr>
                <th>#序号</th>
				<th>用户</th>
				<th>方向</th>
                <th>变动金额</th>
				<th>变动后余额</th>
				<th>备注</th>
				<th>时间</th>
				<th>类型</th>
                <th>所属</th>
				<th>管理</th>
              </tr> 
            </thead>
            <tbody>
             {volist name="capitallogs" id="vo"}
				<tr id="tr_{$vo.cl_id}">
					<td>{$vo.cl_id}</td>
					<td>{$vo.u_phone}</td>
					<td>{if $vo.cl_direction==1}增加{else}减少{/if}</td>
					<td>{$vo.cl_money}</td>
					<td>{$vo.cl_balance}</td>
					<td>{$vo.cl_content}</td>
					<td>{$vo.cl_addtime}</td>
					<td>
					{if $vo.cl_type==1}充值
					{elseif $vo.cl_type==2}礼物订单
					{elseif $vo.cl_type==3}拥金
					{elseif $vo.cl_type==4}提现
					{elseif $vo.cl_type==5}提现失败退回
					{elseif $vo.cl_type==6}任务下单
					{elseif $vo.cl_type==7}任务退回
                    {elseif $vo.cl_type==8}用户完成任务
					{/if}
					</td>
					<td>
					{if $vo.cl_attribution==1}余额
					{elseif $vo.cl_attribution==2}推广拥余额
					{elseif $vo.cl_attribution==3}分站赢利余额
					{/if}
					</td>
					<td>
							<div class="layui-btn-group">
                            {if $ps['del']['power']}
								<button class="layui-btn layui-btn-sm" onClick="calldel('{:url('capitallogs/del',array('id'=>$vo.cl_id))}','tr_{$vo.cl_id}')"><i class="layui-icon">&#xe640;</i></button>
                            {/if}
							</div>
					</td>
				</tr>
			{/volist}
            </tbody>
          </table> 
		   <div class="layui-box layui-laypage layui-laypage-molv">{$page}</div>
          </div>
        </div>
      </div>
    </div>
  </div>
  {include file="common_footer" /} 
</body>
</html>